/*
package com.ailargemodel.common.rabbitmq;
  
import org.springframework.amqp.rabbit.core.RabbitTemplate;  
import org.springframework.beans.factory.annotation.Autowired;  
import org.springframework.web.bind.annotation.PostMapping;  
import org.springframework.web.bind.annotation.RequestParam;  
import org.springframework.web.bind.annotation.RestController;  
  
@RestController  
public class MessageProducer {  
  
    @Autowired  
    private RabbitTemplate rabbitTemplate;  
  
    @PostMapping("/send")  
    public String sendMessage(@RequestParam(defaultValue = "请求1") String message) {
        rabbitTemplate.convertAndSend(RabbitMQConfig.QUEUE_NAME, RabbitMQConfig.ROUTING_KEY, message);
        return "Message sent: " + message;  
    }  
}*/
